﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="kartrisTaxData" targetNamespace="http://tempuri.org/kartrisTaxData.xsd" xmlns:mstns="http://tempuri.org/kartrisTaxData.xsd" xmlns="http://tempuri.org/kartrisTaxData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="KartrisSQLConnection" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KartrisSQLConnection (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.KartrisSQLConnection.ConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="kartrisSQLConnection" IsAppSettingsProperty="true" Modifier="Assembly" Name="kartrisSQLConnection (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Kartris.My.MySettings.GlobalReference.Default.kartrisSQLConnection" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TaxRatesTblAdptr" GeneratorDataComponentClassName="TaxRatesTblAdptr" Name="TaxRates" UserDataComponentName="TaxRatesTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL_GPL.dbo.[_spKartrisTaxRates_Get]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="_GetTaxRates" GetMethodModifier="Public" GetMethodName="_GetTaxRates" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="_GetTaxRates" UserSourceName="_GetTaxRates">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisTaxRates_Get]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="T_ID" DataSetColumn="T_ID" />
              <Mapping SourceColumn="T_Taxrate" DataSetColumn="T_Taxrate" />
              <Mapping SourceColumn="T_TaxRateString" DataSetColumn="T_TaxRateString" />
              <Mapping SourceColumn="T_QBRefCode" DataSetColumn="T_QBRefCode" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="_GetTaxRatesForDisplay" GetMethodModifier="Public" GetMethodName="_GetTaxRatesForDisplay" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="_GetTaxRatesForDisplay" UserSourceName="_GetTaxRatesForDisplay">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisTaxRates_GetForDisplay]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Byte" Direction="Input" ParameterName="@LANG_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL_GPL.dbo.spKartrisTaxRates_GetClosestRate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="GetClosestRate" Modifier="Public" Name="GetClosestRate" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetClosestRate">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisTaxRates_GetClosestRate</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="real" DbType="Single" Direction="Input" ParameterName="@computedTaxRate" Precision="24" ProviderType="Real" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL_GPL.dbo.spKartrisVersions_GetQBTaxRefCode" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="GetQBTaxRefCodeOfVerCode" Modifier="Public" Name="GetQBTaxRefCodeOfVerCode" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="GetQBTaxRefCodeOfVerCode">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisVersions_GetQBTaxRefCode</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@V_CodeNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="kartrisSQL_GPL.dbo.spKartrisTaxRates_Get" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="GetTaxRatebyID" Modifier="Public" Name="GetTaxRatebyID" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="GetTaxRatebyID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisTaxRates_Get</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@T_ID" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="kartrisTaxData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_DataSetName="kartrisTaxData" msprop:Generator_UserDSName="kartrisTaxData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="TaxRates" msprop:Generator_UserTableName="TaxRates" msprop:Generator_RowEvArgName="TaxRatesRowChangeEvent" msprop:Generator_TableVarName="tableTaxRates" msprop:Generator_TablePropName="TaxRates" msprop:Generator_RowDeletingName="TaxRatesRowDeleting" msprop:Generator_RowChangingName="TaxRatesRowChanging" msprop:Generator_RowDeletedName="TaxRatesRowDeleted" msprop:Generator_RowEvHandlerName="TaxRatesRowChangeEventHandler" msprop:Generator_TableClassName="TaxRatesDataTable" msprop:Generator_RowChangedName="TaxRatesRowChanged" msprop:Generator_RowClassName="TaxRatesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="T_ID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnT_ID" msprop:Generator_ColumnPropNameInRow="T_ID" msprop:Generator_ColumnPropNameInTable="T_IDColumn" msprop:Generator_UserColumnName="T_ID" type="xs:unsignedByte" />
              <xs:element name="T_Taxrate" msprop:Generator_ColumnVarNameInTable="columnT_Taxrate" msprop:Generator_ColumnPropNameInRow="T_Taxrate" msprop:Generator_ColumnPropNameInTable="T_TaxrateColumn" msprop:Generator_UserColumnName="T_Taxrate" type="xs:decimal" />
              <xs:element name="T_TaxRateString" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnT_TaxRateString" msprop:Generator_ColumnPropNameInRow="T_TaxRateString" msprop:Generator_ColumnPropNameInTable="T_TaxRateStringColumn" msprop:Generator_UserColumnName="T_TaxRateString" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="19" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="T_QBRefCode" msprop:Generator_ColumnVarNameInTable="columnT_QBRefCode" msprop:Generator_ColumnPropNameInRow="T_QBRefCode" msprop:Generator_ColumnPropNameInTable="T_QBRefCodeColumn" msprop:Generator_UserColumnName="T_QBRefCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:TaxRates" />
      <xs:field xpath="mstns:T_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>